﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Corina.Datamodel.DataObject
{
    [XmlTypeAttribute(Namespace = "http://tempuri.org/")]
    public class DataObjectInfo
    {
        public List<ObjectValueInfo> Values { get; set; }

        public object this[string name]
        {
            get
            {
                return Values.FirstOrDefault(t => t.Property == name).Value;
            }
        }
    }
}
